package com.ozo.cloud.manage.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 权限保存对象
 *
 * @author qiangesoft
 * @date 2024-10-29
 */
@Schema(description = "权限保存对象")
@Data
@NoArgsConstructor
public class SysPermissionSaveDTO {

    @Schema(description = "id")
    private Long id;

    @Schema(description = "父级id")
    private Long parentId;

    @NotBlank(message = "类型不能为空")
    @Schema(description = "权限类型：menu-菜单 iframe-iframe link-外链 button-按钮")
    private String type;

    @NotBlank(message = "标题不能为空")
    @Schema(description = "标题")
    private String title;

    @Schema(description = "路由")
    private String route;

    @Schema(description = "组件")
    private String component;

    @NotBlank(message = "编码不能为空")
    @Schema(description = "编码")
    private String code;

    @Schema(description = "图标")
    private String icon;

    @NotNull(message = "排序号不能为空")
    @Schema(description = "排序号")
    private Integer orderNum;

    @Schema(description = "菜单隐藏")
    private Boolean hidden;

    @Schema(description = "是否固定")
    private Boolean affix;

    @NotBlank(message = "状态不能为空")
    @Schema(description = "状态：1-启用 0-禁用")
    private String status;

    @Schema(description = "备注")
    private String remark;

}
